/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javatowerdefense;

import java.awt.Image;
import java.util.ArrayList;
import java.util.Hashtable;

/**
 *
 * @author Norvin Altamirano
 */
public class TileSet {
    
    String name;
    Hashtable<String,Image> images;
    
    /**
     * Builds a new Tileset;
     * @param name
     * @param images
     */
    public TileSet(String name, Hashtable<String, Image> images){
        this.name = name;
        this.images = images;
    }
    
    /**
     * Returns the image contained in the given index.
     * @param number
     * @return
     */
    public Image getImage(String name){
        return images.get(name);
    }
    
    public void addImage(String name, Image image){
        images.put(name , image);
    }
}
